package com.umeng.soexample.di.modules;

import com.umeng.soexample.mvp.contract.UserRegisterFragmentContract;
import com.umeng.soexample.mvp.model.UserRegisterFragmentModel;

import dagger.Module;
import dagger.Provides;

@Module
public class UserRegisterFragmentModules {
    private UserRegisterFragmentContract.UserRegisterIView iView;
    public UserRegisterFragmentModules(UserRegisterFragmentContract.UserRegisterIView iView) {
        this.iView = iView;
    }

    @Provides
    public UserRegisterFragmentContract.UserRegisterIView providerUserRegisterIView(){
        return iView;
    }

    @Provides
    public UserRegisterFragmentContract.UserRegisterIModel providerUserRegisterIModel(){
        return new UserRegisterFragmentModel();
    }

}
